#include "stdio.h"
#include "string.h"
#include "Includes.h"
#include "DEV_Station.h"


GUN_STA_E get_gun_sta(void)
{
    GUN_STA_E retval;
    
    uint16_t vol=0, freq=0, duty=0;
    
    cp_info_get(&vol, &duty, &freq);
    
    switch(vol)
    {
        case 12:
                retval = GUN_PLUG_IDLE;
            break;
        
        case 9:
                retval = GUN_PLUG_CONT;
            break;
        
        case 6:
                retval = GUN_PLUG_READY;
            break;

        default:
                retval = GUN_PLUG_ERR;
            break;
    }
    
    return retval;
}


